package com.tjetc.dao;

import com.tjetc.domain.User;

import java.sql.SQLException;

public interface UserDao {

    User getByPhone(String phone) throws SQLException;

    void add(User user) throws SQLException;

    User getById(int id) throws SQLException;
    //修改账户金额
    void update(User user) throws SQLException;

    void clearAccount(int id) throws SQLException;

    Integer getMaxId() throws SQLException;
}
